Singular Component Variable/Constant/Timer Reference ^^^^^ **Definition:** * A component variable, constant or timer is referenced by one single function, test case or altstep only, although other behavioral entities run on the component as well. **Code Example:** .. code-block:: pseudo module SingularComponentVCTReference { type port ExamplePort message { inout charstring; } type component c { timer t; port ExamplePort p; } function f() runs on c { p.send("bar"); p.send("baz"); } testcase tc() runs on c { t.start(10.0); alt { [] p.receive("foo") { p.send("bar"); } [] any port.receive { // error handling } [] t.timeout { // error handling } } } } **References:** .. admonition:: Quality attributes * :octicon:`file-code;1em` - Code Example * :octicon:`comment-discussion;1em` - Cause and Effect * :octicon:`graph;1em` - Frequency * :octicon:`sync;1em` - Refactoring * `An approach to quality engineering of TTCN-3 test specifications `_ * `Pattern-based Smell Detection in TTCN-3 Test Suites `_ :octicon:`file-code;1em` :octicon:`comment-discussion;1em` :octicon:`sync;1em` * `Utilising Code Smells to Detect Quality Problems in TTCN-3 Test Suites `_